<template>
  <div>
     <nav-bar>
       <div slot="title">用户信息</div>
     </nav-bar>
    <user-info :info="userInfo"></user-info>
  </div>
</template>

<script>
  import navBar from './components/navBar.vue'
  import userInfo from './components/userInfo.vue'
  export default{
    name:'',
    data(){
      return {
        userInfo:{},

       }
    },
    methods:{
      back(){
        this.$router.back()
      }
    },
    activated() {
      // console.log(JSON.parse(window.sessionStorage.store));
      if(window.sessionStorage.user){
        let save=window.sessionStorage.user
        let json = (new Function("return " + save))();
        this.userInfo= json
        console.log(json);
        
      }
    },
    components:{
       navBar,userInfo
    }
  }
</script>

<style scoped>

</style>
